#!/bin/bash
FILE="./flypy.mb"
if [ -e $FILE ];then
		echo "Remove $FILE..."
		rm $FILE
else
		echo "$FILE is not existing. Skip..."
fi
echo "Generating .mb file"
txt2mb flypy.txt flypy.mb
echo "Coping .mb and .conf file..."
cp flypy.conf flypy.mb ~/.config/fcitx/table/
echo "Cleaning .mb file..."
rm flypy.mb
exec fcitx-restart-gtk3 
